package com.corticon.client.model;

import java.io.Serializable;
import java.util.List;
import java.util.ArrayList;
import org.apache.commons.lang.StringUtils;

/**
 * This class is used for the summary function.
 */
public class SummaryQuestionDTO implements Serializable, Comparable {
	private String text;
	private String sequence;
	private Double priority;
	private List<String> responses = new ArrayList<String>();

	public SummaryQuestionDTO() {
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getSequence() {
		return sequence;
	}

	public void setSequence(String sequence) {
		this.sequence = sequence;
	}

	public Double getPriority() {
		return priority;
	}

	public void setPriority(Double priority) {
		this.priority = priority;
	}

	public List<String> getResponses() {
		return responses;
	}

	public void setResponses(List<String> responses) {
		this.responses = responses;
	}

	public int compareTo(Object o) {
		SummaryQuestionDTO other = (SummaryQuestionDTO) o;
		return priority.compareTo(other.getPriority());
	}
}
